LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

# This is the target being built.
LOCAL_MODULE:= libbspatch


# All of the source files that we will compile.
FILE_LIST := $(wildcard $(LOCAL_PATH)/bspatch/*.c)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
APP_ALLOW_MISSING_DEPS=true

# No static libraries.
LOCAL_STATIC_LIBRARIES := \
     libbz


# Also need the JNI headers.
LOCAL_C_INCLUDES += $(LOCAL_PATH)/bspatch/include

# No special compiler flags.
LOCAL_CFLAGS +=
#LOCAL_SHARED_LIBRARIES := liblog libcutils
LOCAL_LDLIBS += -llog
include $(BUILD_SHARED_LIBRARY)

#######################speex start#######################
include $(CLEAR_VARS)
SPEEX	:= speex-1.2rc1
LOCAL_MODULE    := speex
FILE_LIST := $(wildcard $(SPEEX)/libspeex/*.c)
FILE_LIST += $(wildcard $(SPEEX)/*.cpp)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_C_INCLUDES +=
LOCAL_CFLAGS = -DFIXED_POINT -DUSE_KISS_FFT -DEXPORT="" -UHAVE_CONFIG_H -I$(LOCAL_PATH)/$(SPEEX)/include
LOCAL_LDLIBS := -llog -lz
include $(BUILD_SHARED_LIBRARY)
########################speex end######################
